package com.supermap.dataservice.project.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.supermap.dataservice.mysql.config.DynamicDataSourceContextHolder;
import com.supermap.dataservice.mysql.config.TargetDataSource;
import com.supermap.dataservice.project.mapper.AgrCollectMapper;
import com.supermap.dataservice.project.mapper.ChinaProject;
import com.supermap.dubbo.api.product.ChinaProjectService;
import com.supermap.dubbo.api.warn.FileNotFoundException;

import javax.annotation.Resource;
import java.io.File;
import java.util.List;
import java.util.Map;

/**
 * @author aqua
 * @description
 * @date 2018年11月08 下午 1:32
 * @email 1301584033@qq.com
 */
@Service
@TargetDataSource("ds3")
public class ChinaProjectServiceImpl implements ChinaProjectService {
    @Resource
    private ChinaProject chinaProject;
    @Override
    public List<Map<String, Object>> getnewDateAllProductCount() {
        DynamicDataSourceContextHolder.setDataSourceKey("ds3");
        return chinaProject.getnewDateAllProductCount();
    }
}
